package com.wanxi.arraysort;

import java.util.Arrays;

public class ArraySort {
    public static void main(String[] args) {
        int[] arr = {6, 1, 2, 7, 9, 3, 4, 5, 10, 8};
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
//        二分查找
//        快速排序
        int i = Arrays.binarySearch(arr, 6);
        System.out.println(i);
    }
}
